Chapter 11 - OpenDoc Runtime Features
This chapter concludes the programming portion of this book by discussing several aspects of the OpenDoc runtime environment that are of interest to you as a part-editor developer. The topics in this chapter are different from the programming-interface topics discussed in the previous eight chapters. Nevertheless, they are important to understanding how your parts function at runtime with OpenDoc.
- "The Runtime Environment" describes in general the runtime architecture of OpenDoc and its effect on part development.
- "Creating and Releasing Objects" describes how your part editor creates and releases objects (including how to be efficient about it), how it manages multiple references to objects, and when it should purge memory.
- "Accessing Objects Through Iterators" describes how your part can use iterators to access collections of objects.
- "Binding" describes how your part editor is bound to a part at runtime according to the kinds of data stored in the part and the kinds and categories of data supported by your editor.
- "Runtime Object Relationships" summarizes and illustrates how OpenDoc objects in a document interact with each other for specific purposes.
- "The Document Shell" describes how the OpenDoc document shell performs its functions and how its functioning relates to your part editor's responsibilities.
Chapter Contents
- The Runtime Environment
- The OpenDoc Runtime Process
- CFM and the System Object Model
- Dynamic Linking
- SOM and Distributed Dispatching
- SOM Exception Handling
- The Part-Wrapper Object
- Name Spaces
- Creating and Releasing Objects
- Factory Methods
- Reference-Counted Objects
- Handling Byte Arrays and Other Parameters
- Purging
- Lazy Internalization
- Accessing Objects Through Iterators
- Binding
- Information Used for Binding
- Part Kinds Supported by an Editor
- Part Kinds Stored in a Part
- Standard Part Kinds
- Part Categories Supported by an Editor
- User Strings
- Mac OS Binding Information
- Apple Guide Support
- Binding Information for Part Viewers
- The Binding Process
- When Binding Occurs
- Binding to Preferred Editor
- Binding to Default Editor for Kind
- Binding to Default Editor for Category
- Binding to Any Available Editor for That Kind
- Binding to Editor of Last Resort
- Binding With Translation
- Consequences of Changing Part Editor or Part Kind
- Runtime Object Relationships
- The Session Object
- Session-Level Objects
- Drawing-Related Objects
- The Window State and Windows
- Embedding
- Layout and Imaging
- User-Interface Objects
- Storage Objects
- Document Storage
- Part Storage
- Extension Objects and Semantic Events
- The Document Shell
- Document Shell Operations
- Opening a Document
- Saving and Reverting a Document
- Closing a Document
- Handling User Events
- Handling Semantic Events
- The Document Shell and the Document Menu
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help